package com.wl.jetpackdemo.base.db.user

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 *
 * Created by wangliang on 2021/1/29.
 */
@Entity
data class User(
                @ColumnInfo(name = "name") val name: String = "",
                @ColumnInfo(name = "age") var age: Int = 0,
                @ColumnInfo(name = "desc") var desc: String = ""
) {
    @PrimaryKey(autoGenerate = true) var id:Int = 0
}
